let mongoose=require("mongoose")
let Schema=mongoose.Schema;

mongoose.connect("mongodb://127.0.0.1:27017/blog",{
    useNewUrlParser:true,
    useUnifiedTopology:true
}).then(()=>{
    console.log("数据库连接成功")
})

let articleTable=mongoose.model("articleTable",new Schema({
    watch: {
        type:Number,
        default:0
      }
}))

module.exports={
    articleTable
}